﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    enum NpcType
    {
        Task,
        Shop,
        Iron
    }
    abstract class Npc
    {
        private string name;
        private NpcType type;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NpcType Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public Npc(string name, NpcType type)
        {
            this.name = name;
            this.type = type;
        }
        public abstract void speck();
    }
}
